﻿@model Cofe.Web.Models.VolumeInfoViewModel
@{
    ViewBag.Title = "Create";
}

<h2>Create Volume</h2>
@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>CofeSystemInfo</legend>

        @Html.LabelFor(m => m.VolumeInfo.FactoryId, "Volume factory")
        @Html.DropDownListFor(m => m.VolumeInfo.FactoryId, ViewBag.VolumeFactories as SelectList)

        @Html.LabelFor(m => m.VolumeInfo.VolumeId, "Volume id")
        @Html.EditorFor(m => m.VolumeInfo.VolumeId)

        @Html.LabelFor(m => m.VolumeInfo.ParamString, "Parameters")
        @Html.EditorFor(m => m.VolumeInfo.ParamString)

        @Html.LabelFor(m => m.FamilyMemberPermission, "Permission for Family members")
        @Html.EnumDropDownListFor(m => m.FamilyMemberPermission)

        @Html.LabelFor(m => m.FriendPermission, "Permission for Friends")
        @Html.EnumDropDownListFor(m => m.FriendPermission)

        @Html.LabelFor(m => m.PublicPermission, "Permission for Public")        
        @Html.EnumDropDownListFor(m => m.PublicPermission)
        <p>
            <input type="submit" value="Add" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>